$(function() {
    $.extend(daicuo.admin, {
        navbar : {
            events : {
                'click [data-toggle="edit"]': function (event, value, row, index) {
                    $(event.currentTarget).attr('data-callback','window.daicuo.admin.navbar.dialog');
                }
            },
            dialog: function($data, $status, $xhr) {
                window.daicuo.bootstrap.dialogForm($data);
                window.daicuo.upload.init();
            }
        }
    });
});